package com.hsgene.goods.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商城商品信息
 *
 * @author wangbing
 * @version 1.0, 2018/7/13
 */
public class GoodsMall {

    /**
     * 商城商品编号
     */
    private String id;

    /**
     * 商品编号
     */
    private String goodsId;

    /**
     * 发布平台：1 = WEB，2 = APP，3 = 小程序
     */
    private Byte platformType;

    /**
     * 主分类
     */
    private Integer mainCategory;

    /**
     * 子分类
     */
    private Integer subCategory;

    /**
     * 供应商名称
     */
    private String supplierName;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 封面图
     */
    private String coverUrl;

    /**
     * 套餐商品banner介绍（JSON）
     */
    private String goodsBanner;

    /**
     * 市场价
     */
    private BigDecimal marketPrice;

    /**
     * 结算价格
     */
    private BigDecimal settlementPrice;

    /**
     * 价格区间开始
     */
    private BigDecimal priceSectionStart;

    /**
     * 价格区间结束
     */
    private BigDecimal priceSectionEnd;

    /**
     * 检测时长
     */
    private Short detectionDuration;

    /**
     * 库存数量
     */
    private Integer inventoryCount;

    /**
     * 规格包装
     */
    private String specification;

    /**
     * 产品介绍（富文本）
     */
    private String presentation;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date updateTime;

    /**
     * 最新商品快照id
     */
    private String snapshootId;

    /**
     * 销量
     */
    private Integer salesVolume;

    /**
     * 好评量
     */
    private Integer goodCommentVolume;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Byte getPlatformType() {
        return platformType;
    }

    public void setPlatformType(Byte platformType) {
        this.platformType = platformType;
    }

    public Integer getMainCategory() {
        return mainCategory;
    }

    public void setMainCategory(Integer mainCategory) {
        this.mainCategory = mainCategory;
    }

    public Integer getSubCategory() {
        return subCategory;
    }

    public void setSubCategory(Integer subCategory) {
        this.subCategory = subCategory;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getGoodsBanner() {
        return goodsBanner;
    }

    public void setGoodsBanner(String goodsBanner) {
        this.goodsBanner = goodsBanner;
    }

    public BigDecimal getSettlementPrice() {
        return settlementPrice;
    }

    public void setSettlementPrice(BigDecimal settlementPrice) {
        this.settlementPrice = settlementPrice;
    }

    public BigDecimal getPriceSectionStart() {
        return priceSectionStart;
    }

    public void setPriceSectionStart(BigDecimal priceSectionStart) {
        this.priceSectionStart = priceSectionStart;
    }

    public BigDecimal getPriceSectionEnd() {
        return priceSectionEnd;
    }

    public void setPriceSectionEnd(BigDecimal priceSectionEnd) {
        this.priceSectionEnd = priceSectionEnd;
    }

    public Short getDetectionDuration() {
        return detectionDuration;
    }

    public void setDetectionDuration(Short detectionDuration) {
        this.detectionDuration = detectionDuration;
    }

    public Integer getInventoryCount() {
        return inventoryCount;
    }

    public void setInventoryCount(Integer inventoryCount) {
        this.inventoryCount = inventoryCount;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getPresentation() {
        return presentation;
    }

    public void setPresentation(String presentation) {
        this.presentation = presentation;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getSnapshootId() {
        return snapshootId;
    }

    public void setSnapshootId(String snapshootId) {
        this.snapshootId = snapshootId;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Integer getSalesVolume() {
        return salesVolume;
    }

    public void setSalesVolume(Integer salesVolume) {
        this.salesVolume = salesVolume;
    }

    public Integer getGoodCommentVolume() {
        return goodCommentVolume;
    }

    public void setGoodCommentVolume(Integer goodCommentVolume) {
        this.goodCommentVolume = goodCommentVolume;
    }
}
